import React, { Component } from 'react';
import './index.css'
import { NavLink,Redirect} from 'react-router-dom'
import logo from '../../assets/images/logo.png'
class TopBar extends Component {
    render() {
        return (
            <div className='topbar-box'>
                <div className='left'>
                    <img src={logo} alt="" />
                </div>
                <div className='center'>
                    <NavLink to="/home/selected" className="border-right lis" activeClassName="active-top">
                        全部
                    </NavLink>
                    <NavLink to="/home/man" className="border-right lis" activeClassName="active-top">
                        男生
                    </NavLink>

                    <NavLink to="/home/woman" className="lis" activeClassName="active-top">
                        女生
                    </NavLink>
                    <Redirect to="/home/selected"></Redirect>
                </div>
                <div className='right'>
                <i className="iconfont iconfangdajing"></i>
                </div>
            </div>
        )
    }
}
export default TopBar;